package com.zzyl.nursing.service.impl;

import cn.hutool.db.Page;
import cn.hutool.db.PageResult;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zzyl.common.utils.StringUtils;
import com.zzyl.nursing.domain.NursingProject;
import com.zzyl.nursing.mapper.ProjectMapper;
import com.zzyl.nursing.service.ProjectService;
import com.zzyl.nursing.vo.ProjectVo;
import org.springframework.stereotype.Service;


@Service
public class ProjectServiceImp extends ServiceImpl<ProjectMapper, NursingProject> implements ProjectService {
   /* @Override
    public PageResult<ProjectVo> page(String name, Integer status, Integer pageNum, Integer pageSize) {
        return null;
    }*/
    /*@Override
    public PageResult<ProjectVo> page(String name, Integer status, Integer pageNum, Integer pageSize) {
        LambdaQueryWrapper<NursingProject> wrapper = new LambdaQueryWrapper<>();
        wrapper.eq(status != null,NursingProject::getStatus,status)
        .like(StringUtils.isNotBlank(name), NursingProject::getName, name);

        Page<NursingProject> page = new Page<>(pageNum, pageSize);
        ProjectMapper.selectPage(page, wrapper);
        return new PageResult<>(
                page.getTotal(),
                ProjectConvert.
                );


    }*/
}
